package mediator;

public class Application {

	public static void main(String[] args) {

		MediateurImpl2 mediateur = new MediateurImpl2();
		Collegue c1 = new CollegueImpl1("A", mediateur);
		Collegue c2 = new CollegueImpl1("B", mediateur);
		Collegue c3 = new CollegueImpl1("C", mediateur);
		
		c1.envoyer(new Message("XXXXX", "B"));
		c1.envoyer(new Message("AAAAA", "C"));
		c2.envoyer(new Message("BBBBB", "A"));
		
		System.out.println("--------------------------------------------------");
		System.out.println("Analyser la conversation");
		mediateur.analyserConversation();
	}
}
